package com.ysd.alipay.fegin;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.ysd.alipay.fegin.impl.OrdersFeginClientCallBack;

/**
 * 创建一个 Feign接口，此接口是在Feign中调用微服务的核心接口
 * @author zhoum
 *
 */
@FeignClient(name = "shop-service-order",fallback = OrdersFeginClientCallBack.class)	//指定熔断：声明降级方法	
public interface OrdersFeginClient {

	//调用的请求路径
	@RequestMapping(value = "/order/updateFK", method = RequestMethod.GET)
	public int updateFK(@RequestParam int id);
	
	//调用的请求路径
	@RequestMapping(value = "/order/showInfoById", method = RequestMethod.GET)
	public Map<String,Object> showInfoById(@RequestParam int id);
}
